Skip to content

Stage 1: 2.5D Civic Seam renderer, 60Hz/audio rewrite, Pause shell & @4x atlases - #263

Open
scrimshawlife-ctrl wants to merge 5 commits into
fix/receipt-v2-contractfrom
feat/stage1-civic-seam-25d-runtime
Open

scrimshawlife-ctrl wants to merge 5 commits into
fix/receipt-v2-contractfrom
feat/stage1-civic-seam-25d-runtime

Conversation

@scrimshawlife-ctrl

Copy link
Copy Markdown
Collaborator

Summary

Stage 1 full-game graphics, 60 Hz frame-time, audio engine, shell/control UX, and @4x 2.5D painterly-inked asset & .spriteatlas upgrade (pinned to Stage-1 SS-specs with zero digest or golden-fixture churn on ss-rules-014):

  • Permanent 2.5D Isometric Renderer (App/WorldProjection.swift, App/GameScene.swift, App/WorldRenderer.swift, App/VFXRenderer.swift):
    • Permanent worldScaleNode (yScale = 0.5) → worldRotateNode (zRotation = .pi / 4) with exact algebraic upright cancellation $S \cdot R(+\frac{\pi}{4}) \cdot R(-\frac{\pi}{4}) \cdot S(1, 2) = I_2$ and zero per-frame reparenting.
    • Full-bleed .resizeFill framing 704 world units horizontally, safe-area HUD, 512-unit exterior street skirt, topological Y-depth sorting, 0.35-alpha building occlusion fade over crisp masonry plinths, paired dark/light Camera field contours, #EF4B47 keylined sweeping Vendor mine rings, and projected 4-notch Player / dashed enemy ground rings (retiring production OutlineTextures GPU readback).
  • Audio Rewrite & 60 Hz Stutter Elimination (App/AudioEngine.swift, App/PitchedVoice.swift, Simulation.swift, GhostRun.swift, HUDRenderer.swift):
    • Single persistent AVAudioEngine with 8 pre-attached (AVAudioPlayerNode, AVAudioUnitTimePitch) slots, pre-decoded AVAudioPCMBuffer pool, per-cue gainDb, live mix updates, .stop() on outgoing crossfaded music beds, Network Blackout ambience ducking, and retired dead Voice slider.
    • Lazy TickResult.digest, hoisted liveSolids + prior-tick projectile compaction, O(1) precomputed GhostRun trajectory, fractional Q8 sprite coordinates, cached GameSession.snapshot, SKSpriteNode HUD fills, bounded 60 Hz fixed-timestep accumulator, and PerformanceThresholds.frameTimeP95Ms = 17.0.
  • Controls, Shell & HUD (App/TouchController.swift, App/PauseOverlayView.swift, App/GameContainerView.swift, HUDLayout.swift):
    • Floating-origin virtual stick + magnitude-preserving -45° inverse rotation + simultaneous Stick + Dodge multi-touch.
    • Dedicated SwiftUI PauseOverlayView (PAUSED: RESUME / RESTART / SETTINGS / TITLE), restored 3 HITS (F-013), and active-encounter Heat chevrons.
  • 2.5D Art, ALAC Audio & 8 .spriteatlas Bundles:
    • Delivered all 1,124 @4x.png 4-facing character/Camera frames, 14 2.5D architectural solids, 7 256×256 seamless ground tiles, 13 props, 2 motifs, 2 fog layers, 4 ALAC .m4a audio masters, and 8 Xcode .spriteatlas bundles (AtlasCatalog preloading + .linear mipmaps).

Stacked on #235.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-28T03:14:59.034082Z c3f0dba PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c3f0dba86b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +153 to +157
guard let proj = root["projection"] as? [String: Any],
let mode = proj["mode"] as? String, !mode.isEmpty,
let rot = doubleValue(proj["groundRotationDegrees"]), rot == 45.0,
let yScale = doubleValue(proj["groundYScale"]), yScale == 0.5,
let space = proj["cameraFacingSpace"] as? String, !space.isEmpty,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Decode the field names shipped in visual-language-002

The bundled visual-language-002.json has no projection.mode or projection.cameraFacingSpace; it supplies facingModel instead. The readability keys also differ from those required below (playerSeparation, enemySeparation, and cameraFieldContour). Consequently, VisualLanguage.bundled() always throws invalidJSON, as reproduced by VisualLanguageTests. In normal gameplay, the suppressed error leaves AtlasCatalog.ensureIndexed() with no atlas names and prevents WorldRenderer.syncOutlines() from disabling runtime outline readback. Align the decoder with the shipped contract so the atlas and readability paths actually activate.

Useful? React with 👍 / 👎.

Comment thread App/GameScene.swift
Comment on lines +358 to +360
for idx in built.enemies.indices {
if let vel = velocityById[built.enemies[idx].id] {
built.enemies[idx].direction = ClipFrameLibrary.cameraSpaceDirection(forFacing: vel)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Convert enemy occurrence facings to camera space as well

In normal 2.5D play, this loop converts only the enemies' base directions. ReactionClipTracker.ingest() still captures hurt, defeat, and held commit occurrences using the unprojected ActorClipProjection.direction(for:), and the subsequent reactions.apply(to:) installs those occurrences unchanged. Since WorldRenderer.playClip() prefers occurrence.direction over the base direction, an enemy moving along world (1, 1) faces north during locomotion but switches to east when hurt or defeated. Capture enemy occurrence facings in the same camera space when creating them, while preserving their event-time facing.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant